package com.blog.dao;

import com.blog.pojo.MCategory;
import com.blog.pojo.MCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MCategoryMapper {
    int countByExample(MCategoryExample example);

    int deleteByExample(MCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MCategory record);

    int insertSelective(MCategory record);

    List<MCategory> selectByExample(MCategoryExample example);

    MCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MCategory record, @Param("example") MCategoryExample example);

    int updateByExample(@Param("record") MCategory record, @Param("example") MCategoryExample example);

    int updateByPrimaryKeySelective(MCategory record);

    int updateByPrimaryKey(MCategory record);
  
	String selectNameById(Integer id); 

	int updateNameById(@Param("id") Integer id,@Param("name") String name);
	
}